<template>
  <div class="page-container" :style="{height: pageHeight}">
    <slot name="default"></slot>
  </div>
</template>

<script>
  import {mapState} from 'vuex';

  export default {
    name: 'PageLayout',
    props: {
      tabs: {
        type: Array,
        default: () => {
          return [];
        }
      },
    },
    data() {
      return {};
    },
    computed: {
      ...mapState({
        breadcrumbHeight: state => state.client.breadcrumbHeight,
      }),
      pageHeight() {
        return `calc(100vh - ${this.breadcrumbHeight}px)`;
      },
    },
    methods: {}
  };
</script>

<style scoped lang="less">
  .page-container {
    position: relative;
  }
</style>
